﻿@using Hk.Biker.Infrastructure
@model Hk.Core.Services.CategoryService
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    var idx = 0;
}

@section SEO{
    @Html.Raw(ViewBag.Meta)
}

<div class="row">
    <div id="center_column" class="center_column col-xs-12 col-sm-12 clearfix">
        <div id="featured-products_block_center" class="main_page_products block">
            <h4><span>Featured products</span></h4>
            <ul class="row">
                @foreach (var item in Model.ListPost)
                {
                    idx++;
                    <li class="col-xs-12 col-sm-6 col-md-2 ">
                        <div class="inner_content clearfix text-center">
                            <div class="product_image">
                                <a href="@AppSettings.CurrentDomain@item.Url" title="@item.Title" class="product_image">
                                    <img src="/Content/images/10-home_default.jpg" alt="@item.Title"></a>
                            </div>
                            <p class="price_container">
                                <span class="price">$628.96</span>
                            </p>
                            <h6><a class="product_link" href="@AppSettings.CurrentDomain@item.Url" title="@item.Title">@item.Title</a></h6>
                        </div>
                    </li>
                    if (idx % 6 == 0)
                    {
                        @Html.Raw("</ul><ul class=\"row\">")
                    }
                }
            </ul>
            @Html.Raw(Model.Pagination)
        </div>
    </div>
</div>
